package com.stylefeng.guns.common.persistence.model;

import java.io.Serializable;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 用户登录历史记录
 * </p>
 *
 * @author stylefeng
 * @since 2018-02-04
 */
@TableName("em_t_user_login_his")
public class UserLoginHis extends Model<UserLoginHis> {

    private static final long serialVersionUID = 1L;

	private String id;
	private String account;
	@TableField("login_time")
	private Date loginTime;
    /**
     * 验证结果；1成功 0失败
     */
	private String result;


	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public Date getLoginTime() {
		return loginTime;
	}

	public void setLoginTime(Date loginTime) {
		this.loginTime = loginTime;
	}

	public String getResult() {
		return result;
	}

	public void setResult(String result) {
		this.result = result;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "UserLoginHis{" +
			"id=" + id +
			", account=" + account +
			", loginTime=" + loginTime +
			", result=" + result +
			"}";
	}
}
